﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSearch.cs" Inherits="Billing2.ucSearch"
    EnableViewState="true" %>
<%@ Register Src="ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="ucInProgress.ascx" TagName="ucInProgress" TagPrefix="uc2" %>
<asp:UpdatePanel runat="server" ID="updatePanel3">
    <ContentTemplate>
        <uc1:ucHighlight ID="ucHighlight1" runat="server" />
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="BtnSearch" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
<asp:Panel ID="PanelDetails" runat="server" Visible="False">
    <table>
        <tr>
            <td align="right">
                Search
            </td>
            <td>
                <div class="formRight searchDrop">
                    <asp:DropDownList ID="ddlSearch" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSearch_SelectedIndexChanged"
                        CssClass="validate[required]">
                    </asp:DropDownList>
                </div>
            </td>
            <td>
                <asp:Panel ID="PanelSearch" runat="server">
                    Contains:&nbsp;
                    <asp:TextBox ID="txtSearch" runat="server" Width="200px"></asp:TextBox>
                </asp:Panel>
                <asp:Panel ID="PanelDate" runat="server" Visible="False">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="LblFrom" runat="server" Text="From Date"></asp:Label>
                                <asp:TextBox runat="server" ID="txtFromDate" Text=""></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" TargetControlID="txtFromDate"
                                    Format="dd/MM/yyyy">
                                </asp:CalendarExtender>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Label ID="LblTo" runat="server" Text="To Date"></asp:Label>
                                &nbsp;&nbsp;&nbsp;
                                <asp:TextBox runat="server" ID="txtToDate" Text=""></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" TargetControlID="txtToDate"
                                    Format="dd/MM/yyyy">
                                </asp:CalendarExtender>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td>
                <asp:UpdatePanel ID="ActionPanel" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                        <asp:Button ID="btnReset" runat="server"  Text="Reset" OnClick="btnReset_Click" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LblActive" runat="server" Text="Filter By" Visible="False"></asp:Label>
            </td>
            <td>
                <asp:RadioButtonList ID="RblActive" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                    OnSelectedIndexChanged="RblActive_SelectedIndexChanged" Visible="False">
                    <asp:ListItem Selected="True" Value="0">All</asp:ListItem>
                    <asp:ListItem Value="1">Active</asp:ListItem>
                    <asp:ListItem Value="2">Inactive</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
    </table>
    <asp:UpdateProgress ID="updateprogress1" runat="server" AssociatedUpdatePanelID="ActionPanel">
        <ProgressTemplate>
            <uc2:ucInProgress ID="ucInProgress1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:HiddenField runat="server" ID="xSearchData" Value="0" />
</asp:Panel>
